package com.hzbank.juc.introduction;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: libugu@cskaoyan.com
 * @date 2023/11/29 - 16:03
 */
@Slf4j
public class Thread01 {

    public static void main(String[] args) {

        Thread thread = new Thread("线程武大郎"){
            public void run(){
                log.debug("线程跑着呢");
            }
        };

        thread.start();

        log.debug("线程跑着呢");


        Runnable runnable = new Runnable(){

            @Override
            public void run() {
                log.debug("runnable=========");
            }
        };

        Thread thread1 = new Thread(runnable, "我叫潘金莲");
        thread1.start();
    }

}
